#!/usr/bin/env bash

# linux desktop entry
# 默认情况
# exec alacritty -e hx %f

## 这里使用 
# Exec=/__path__/.config/helix/scripts/hx-desktop %f
# 接收参数 %f 
selected_path=$1
selected_folder=$(dirname "$selected_path")
selected_file=$(basename "$selected_path")

# Run Alacritty with Vim, passing folder and file paths as arguments
alacritty -T ${PWD##*/} --config-file=${HOME}/.config/alacritty/hx.toml -e hx -w $selected_folder $selected_path
# kitty hx -w $selected_folder $selected_path

